import { configureStore } from "@reduxjs/toolkit";

import useReducer, { type UserStateType } from "./userReducer";
import componentReducer, {
  type ComponentsStateType,
} from "./componentsReducer/index";
export type StateType = {
  user: UserStateType;
  components: ComponentsStateType;
};
export default configureStore({
  reducer: {
    user: useReducer,
    components: componentReducer,
  },
});
